
import 'package:flutter/material.dart';
import 'package:mvvmdemo/view/widget/login/loginview.dart';
import 'package:mvvmdemo/viewmodel/buiness/loginviewmodel.dart';
class LoginPage extends StatefulWidget{
  const LoginPage({Key? key}) : super(key: key);
  @override
  State<StatefulWidget> createState() {

    return LoginPageState();

  }
}
class LoginPageState extends State<LoginPage>{
  @override
  Widget build(BuildContext context) {
    double width = MediaQuery.of(context).size.width;
    double height = MediaQuery.of(context).size.height;
    return Scaffold(
      body: SizedBox(
        width: width,
        height: height,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: const [
             LoginView(),
          ],
        ),
      ),
    );
  }

  @override
  void initState() {
    LoginViewModel.getLoginViewModel()!.getSysPara();
    super.initState();
  }

}